const list = [
  {
    id: 1,
    name: "张三",
    age: 18,
  },
  {
    id: 2,
    name: "李四",
    age: 18,
  },
  {
    id: 3,
    name: "王五",
    age: 18,
  },
];
function App() {
  return (
    <div className="App">
      <h1>JSX中实现列表渲染</h1>
      <ul>
      {
      list.map((item) => <li key={item.id}>{item.name}</li>)
      }
      </ul>
    </div>
  );
}

export default App;
